import Vue from "vue";
import App from "./App";
import router from "./router";
import iView from "iview";
import "./assets/less/index.less";
import * as echarts from "echarts";
import axios from "axios"; // eslint-disable-line no-unused-vars
import img from "./lib/img";
import utils from "./lib/utils";
import scroll from "vue-seamless-scroll";
Vue.use(scroll);
Vue.prototype.$echarts = function(el) {
  return echarts.init(el, null, { renderer: "svg" });
};
router.beforeEach((to, from, next) => {
  document.title = to.meta.title || "苏州市机关事务-智慧餐厅";
  next();
});
Vue.prototype.$images = img;
Vue.config.productionTip = false;
Vue.use(iView);
Vue.use(utils);
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
